package com.cal.utms.action.payment;

import com.cal.utms.dto.payment.TallyReportDto;
import com.cal.utms.model.payment.TallyReportModel;
import com.opensymphony.xwork2.Action;
import com.opensymphony.xwork2.ActionSupport;
import com.opensymphony.xwork2.ModelDriven;

public class TallyReportAction extends ActionSupport implements ModelDriven<TallyReportDto> {

	/**
	 * 
	 */
	private static final long serialVersionUID = 3646735522992184221L;

	private TallyReportDto reportDto = new TallyReportDto();
	TallyReportModel model = new TallyReportModel();

	private String date;
	private int fundId;

	public String getReportDetails() {
		model.getReportDetails(date, fundId, reportDto);
		return Action.SUCCESS;
	}

	@Override
	public TallyReportDto getModel() {
		return reportDto;
	}

	public TallyReportDto getReportDto() {
		return reportDto;
	}

	public void setReportDto(TallyReportDto reportDto) {
		this.reportDto = reportDto;
	}

	public String getDate() {
		return date;
	}

	public void setDate(String date) {
		this.date = date;
	}

	public int getFundId() {
		return fundId;
	}

	public void setFundId(int fundId) {
		this.fundId = fundId;
	}

}
